﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Industry_Product.aspx.cs" Inherits="TimKen.Web.Admin.Industry.Industry_Product" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">
<span class="action-span"><a href="Industry_Edit.aspx">
        应用行业管理</span>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
行业产品维护
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">

<script  type="text/javascript">

        //产品选择
    function openWindowPro() {
        var featrue = "dialogHeight:500px,dialogWidth:400px,dialogTop:100px,dialogLeft:100px,toolbar:no,menubar:no,scrollbars:yes,resizable:no,location:no,status:no";
        var re = showModalDialog("../SearchXML/SearchWin.aspx?ObjectName=Product&Query=", "", featrue);
        if (re) {
            document.getElementById("<%=txtProduct.ClientID%>").value = re[0];
        }
        return false;
    }

</script>
<asp:DropDownList ID="ddlCategory" runat="server" >
        </asp:DropDownList>  <asp:Button  ID="button1"  runat="server"  Text="添加分类" 
                         onclick="button1_Click"  /><br />
  <asp:TextBox ID="txtProduct" runat="server" Enabled="true"></asp:TextBox>
                    <input type="button" onclick="openWindowPro()" value="选择" />  
                    <asp:Button  ID="button2"  runat="server"  Text="添加产品" 
                         onclick="button2_Click"  />    
                         
 
        <asp:GridView ID="grdProductList" runat="server" AutoGenerateColumns="False"  Width="100%"
            DataKeyNames="ProductID"   AllowPaging="True"  PageSize="20"
            CssClass="grid" onrowdeleting="grdProductList_RowDeleting" 
        CellPadding="4" ForeColor="#333333" GridLines="None"  >
            <RowStyle BackColor="#EFF3FB" />
            <Columns>
                <asp:TemplateField>
                    <ItemStyle Width="200" />
                    <HeaderStyle HorizontalAlign="Center" />
                    <HeaderTemplate>
                         产品编号
                    </HeaderTemplate>
                    <ItemTemplate>
                       <%#Eval("Name")%>
                    </ItemTemplate>
                </asp:TemplateField>
                  <asp:TemplateField>
                    <ItemStyle Width="200" />
                    <HeaderStyle HorizontalAlign="Center" />
                    <HeaderTemplate>
                         产品编号
                    </HeaderTemplate>
                    <ItemTemplate>
                       <%#Eval("ItemCode")%>
                    </ItemTemplate>
                </asp:TemplateField>
               
                   <asp:ButtonField  ButtonType="Button"   CommandName="delete" Text="删除" />
            </Columns>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle HorizontalAlign="Center" BackColor="#507CD1" Font-Bold="True" 
                ForeColor="White" />
            <EditRowStyle BackColor="#2461BF" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
 
</asp:Content>
